package EnterpriseAlgorithm.Stack_Queue.Code.RealizeBetweenS_And_Q;

public class Example {
    public static void main(String[] args) {
        /*
        MyStack_i myStack_i = new MyStack_i();
        myStack_i.push(1);
        myStack_i.push(2);
        myStack_i.push(3);
        System.out.println(myStack_i.top());
        System.out.println(myStack_i.pop());
        System.out.println(myStack_i.pop());
        System.out.println(myStack_i.pop());
        System.out.println(myStack_i.empty());
        System.out.println(myStack_i.pop());
*/
/*
        MyStack_ii myStack_ii = new MyStack_ii();
        myStack_ii.push(1);
        myStack_ii.push(2);
        myStack_ii.push(3);
        System.out.println(myStack_ii.top());
        System.out.println(myStack_ii.pop());
        System.out.println(myStack_ii.pop());
        System.out.println(myStack_ii.pop());
        System.out.println(myStack_ii.empty());
        System.out.println(myStack_ii.pop());
*/
/*
        MyStack_ii myStack_iii = new MyStack_ii();
        myStack_iii.push(1);
        myStack_iii.push(2);
        myStack_iii.push(3);
        System.out.println(myStack_iii.top());
        System.out.println(myStack_iii.pop());
        System.out.println(myStack_iii.pop());
        System.out.println(myStack_iii.pop());
        System.out.println(myStack_iii.empty());
        System.out.println(myStack_iii.pop());

 */

        MyStack_IV myStackIv = new MyStack_IV();
        myStackIv.push(1);
        myStackIv.push(2);
        myStackIv.push(3);
        System.out.println(myStackIv.top());
        System.out.println(myStackIv.pop());
        System.out.println(myStackIv.pop());
        System.out.println(myStackIv.pop());
        System.out.println(myStackIv.empty());
        System.out.println(myStackIv.pop());

    }
}
